home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '90 / MacHack'90 Proceedings / John Norstad / Reusable Code / Source / rez.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-10  |  14.4 KB  |  297 lines  |  [TEXT/MPS ]

  1. /*______________________________________________________________________
  2.  
  3.     rez.h - Disinfectant Resource File Constants and Other Constants.
  4.     
  5.     Copyright © 1988, 1989, 1990 Northwestern University.  Permission is 
  6.     granted to use this code in your own projects, provided you give credit 
  7.     to both John Norstad and Northwestern University in your about box or 
  8.     document.
  9.     
  10.     The constants defined in this header file must match the definitions
  11.     in the file rez.r.
  12. _____________________________________________________________________*/
  13.  
  14. #ifndef __rez__
  15. #define __rez__
  16.  
  17.  
  18. #define    mBarID                128        /* menu bar */
  19.  
  20. #define    appleMID                128         /* menu id of apple menu */
  21. #define    aboutCommand        1            /* item number of about command */
  22. #define    helpCommand            2            /* item number of help command */
  23.  
  24. #define    fileMID                 129         /* menu id of file menu */
  25. #define    closeCommand        1            /* item number of close command */
  26. #define    saveAsCommand        2            /* item number of save as command */
  27. #define    pageSetupCommand    4            /* item number of page setup command */
  28. #define    printCommand         5            /* item number of print command */
  29. #define    printOneCommand    6            /* item number of print one command */
  30. #define    prefsCommand        8            /* item number of preferences command */
  31. #define    quitCommand         10            /* item number of quit command */
  32.  
  33. #define    editMID                 130         /* menu id of edit menu */
  34. #define    undoCommand         1            /* item number of undo command */
  35. #define    cutCommand            3            /* item number of cut command */
  36. #define    copyCommand         4            /* item number of copy command */
  37. #define    pasteCommand        5            /* item number of paste command */
  38. #define    clearCommand        6            /* item number of clear command */
  39.  
  40. #define    scanMID                131        /* menu id of scan menu */
  41. #define    disinfectMID        132        /* menu id of disinfect menu */
  42. #define    fileCommand            1            /* item number of file command */
  43. #define    folderCommand        2            /* item number of folder command */
  44. #define    floppiesCommand    3            /* item number of floppies command */
  45. #define    allDisksCommand    4            /* item number of all disks command */
  46. #define    someDisksCommand    5            /* item number of some disks command */
  47. #define    sysFileCommand        6            /* item number of sys file command */
  48. #define    sysFolderCommand    7            /* item number of sys folder command */
  49.  
  50. #define    protectMID            133        /* menu id of protect menu */
  51. #define    installCommand        1            /* item number of install command */
  52. #define    extractCommand        2            /* item number of extract command */
  53.  
  54. #define    mainWindID        128        /* main window */
  55.  
  56. #define    driveID            128        /* drive button */
  57. #define    ejectID            129        /* eject button */
  58. #define    scanID            130        /* scan button */
  59. #define    disinfectID        131        /* disinfect button */
  60. #define    cancelID            132        /* cancel button */
  61. #define    quitID            133        /* quit button */
  62. #define    resetID            134        /* reset button */
  63. #define    firstControl    128        /* first control */
  64. #define    numControls        7            /* number of controls */
  65.  
  66. #define    mainPopUpID        1000        /* menu id of main window popup menu */
  67.  
  68. #define    helpWindID        129        /* help window */
  69.  
  70. #define    prefsWindID        400        /* prefs dialog window */
  71.  
  72. #define    prefsNotTitle1    7            /* item number of first line of notification
  73.                                                 title */
  74. #define    prefsNotTitle2    8            /* item number of second line of notification
  75.                                                 title */
  76. #define    prefsNotTitle3    9            /* item number of third line of notification
  77.                                                 title */
  78. #define    prefsFirstRule    10            /* item number of first rule useritem */
  79. #define    prefsHorRule1    10            /* item number of first horizontal rule */
  80. #define    prefsHorRule2    11            /* item number of second horizontal rule */
  81. #define    prefsHorRule3    12            /* item number of third horizontal rule */
  82. #define    prefsLastRule    16            /* item number of last rule useritem */
  83. #define    prefsBeep        18            /* item number of num beeps edittext item */
  84. #define     prefsStation    20            /* item number of scanning station checkbox */
  85. #define    prefsScan        21            /* item number of scan radio button */
  86. #define    prefsDisinfect    22            /* item number of disinfect radio button */
  87. #define    prefsRepLabel    23            /* item number of report creator label */
  88. #define    prefsDocLabel    24            /* item number of doc creator label */
  89. #define    prefsRepPop        25            /* item number of report creator popup menu */
  90. #define    prefsDocPop        26            /* item number of doc creator popup menu */
  91. #define    prefsRepType    27            /* item number of report creator edittext item */
  92. #define    prefsDocType    28            /* item number of doc creator edittext item */
  93. #define    prefsNotPict    29            /* item number of notification picture */
  94. #define    prefsDiamond    30            /* item number of diamond only notif radio but */
  95. #define    prefsIcon        31            /* item number of also icon notif radio but */
  96. #define    prefsAlert        32            /* item number of also alert notif radio but */
  97. #define    prefsDim            33            /* item number of dim notif alert section
  98.                                                 user item */
  99.  
  100. #define    prefsRepMenuID    200        /* menu id of report creator popup menu */
  101. #define    prefsDocMenuID    201        /* menu id of doc creator popup menu */
  102.  
  103. #define    prefsRepCreaID    200        /* id of report creator list */
  104. #define     prefsDocCreaID    201        /* id of doc creator list */
  105.  
  106. #define    abouWindID        130        /* about box window */
  107.  
  108. #define    rectType            'RCT#'    /* rsrc type of rectangle list */
  109. #define    rectID            128        /* rectangle list */
  110. #define    volIconRect        0            /* vol sicn rect */
  111. #define    volNameRect        1            /* vol name rect */
  112. #define    foldIconRect    2            /* folder sicn rect */
  113. #define    foldNameRect    3            /* folder name rect */
  114. #define    fileIconRect    4            /* file sicn rect */
  115. #define    fileNameRect    5            /* file name rect */
  116. #define    thermRect        6            /* thermometer rect */
  117. #define    counterRect        7            /* counter rect */
  118. #define    reportRect        8            /* report rect */
  119. #define    docRect            9            /* help window doc text rect */
  120. #define  tconRect            10            /* help window tcon rect */
  121. #define    meRect            11            /* about box picture of me rect */
  122. #define    creditsRect        12            /* about box credits rect */
  123. #define    footRect            13            /* about box foot rect */
  124. #define    numRects            14            /* number of rectangles */
  125.  
  126. #define    repFullID        128        /* report full alert */
  127. #define    badSysID            129        /* bad system alert */
  128. #define    saveRepID1        130        /* save report alert on quit */
  129. #define    unlockID            131        /* unlock and reinsert alert */
  130. #define    diskFullID        132        /* disk full alert */
  131. #define  restartID      133      /* restart alert */
  132. #define    oldRestartID    134        /* restart alert for old systems */
  133. #define    noMemID            135        /* out of memory alert */
  134. #define    noHFSID            136        /* need HFS alert */
  135. #define    unableRepID        137        /* unable to repair alert */
  136. #define    saveRepID2        138        /* save report alert on clear */
  137. #define    printErrID        139        /* printing error alert */
  138. #define    noDriverID        140        /* missing printer driver alert */
  139. #define    illegalSizeID    141        /* illegal font size alert */
  140. #define    noPagesID        142        /* no pages in range alert */
  141. #define    marTooBigID        143        /* margins too big alert */
  142. #define    unlockSSID        144        /* unlock and reinsert alert for scanning
  143.                                                 stations auto floppy repair mode */
  144. #define    initRestartID    145        /* restart after installing INIT alert */
  145. #define    initOldRestartID    146    /* restart after installing INIT alert
  146.                                                 for old systems */
  147. #define    replaceINITID    147        /* replace exiting INIT file alert */
  148. #define    diskLockedID    148        /* disk locked alert */
  149. #define    unexpectedSaveID    149    /* unexpected error on file save alert */
  150. #define    noPrinterID        150        /* no printer selected alert */
  151. #define    printDskFullID    151        /* printing disk full alert */
  152. #define    printLockedID    152        /* printing disk locked alert */
  153.  
  154. #define    getFFID            200        /* get file or folder dialog */
  155. #define    prDlogID            201        /* printing dialog */
  156. #define    plsWaitID        202        /* please wait dialog */
  157. #define    volListID        203        /* volume list dialog */
  158. #define    getFileID        204        /* get file dialog */
  159.  
  160. #define    pageSetupID        300        /* extra items for Page Setup dlog */
  161.  
  162. #define  strListID        128        /* strings STR# resource */
  163. #define    versionStr        1            /* version number string */
  164. #define    putPromptStr    2            /* main wind SFPutFile prompt */
  165. #define    abPromptStr        3            /* help window SFPutFile prompt */    
  166. #define    abDefNameStr    4            /* help window SFPutFile default file name */
  167. #define    repContStr        5            /* report continuation message */
  168. #define    infectedStr        6            /* file infected message */
  169. #define    pInfectedStr1    7            /* file partially infected message 1 */
  170. #define    lastModStr        8            /* last mod infected msg */
  171. #define    ioRepairStr1    9            /* I/O error on repair msg 1 */
  172. #define    ioRepairStr2    10            /* I/O error on repair msg 2 */
  173. #define    ddStartStr        11            /* disk disinfection run started message */
  174. #define    dsStartStr        12            /* disk scanning run started message */
  175. #define    scanDateStr        13            /* run start/finish date/time message */
  176. #define    ddEndStr            14            /* disk disinfection run complete message */
  177. #define    dsEndStr            15            /* disk scanning run complete message */
  178. #define    summaryStr        16            /* summary title line */
  179. #define    totFilesStr        17            /* total files summary line */
  180. #define    totErrorsStr    19            /* total errors summary line */
  181. #define    totInfectedStr    21            /* total infected files summary line */
  182. #define    infWithStr        23            /* "files infected with" summary line */
  183. #define    earInfectedStr    25            /* earliest infected file summary line */
  184. #define     allOKVolStr        26            /* no infections on disk msg */
  185. #define    fDelStr            27            /* file deleted msg */
  186. #define    fRepStr            28            /* file repaired msg */
  187. #define    chkBusyStr        29            /* check file busy msg */
  188. #define    repBusyStr        30            /* repair file busy msg */
  189. #define    topsStr            31            /* can't scan sys files over TOPS */
  190. #define    cancelStr        32            /* scan canceled msg */
  191. #define    unexpectedStr    33            /* unexpected error msg */
  192. #define    pInfectedStr2    34            /* file partially infected message 2 */
  193. #define    allOKFoldStr    35            /* no infections in folder message */
  194. #define    allOKFileStr    36            /* file not infected msg */                                                
  195. #define    fdStartStr        37            /* folder disinfection run started msg */
  196. #define    fsStartStr        38            /* folder scanning run started message */
  197. #define    fdEndStr            39            /* folder disinfection run complete msg */
  198. #define    fsEndStr            40            /* folder scanning run complete message */
  199. #define    xdStartStr        41            /* file disinfection run started message */
  200. #define    xsStartStr        42            /* file scanning run started message */
  201. #define    xdEndStr            43            /* file disinfection run complete msg */
  202. #define    xsEndStr            44            /* file scanning run complete message */
  203. #define    nextDiskStr        45            /* please insert next disk msg */
  204. #define    firstDiskStr    46            /* please insert first disk msg */
  205. #define    restartStr        47            /* infected file in sys folder msg */
  206. #define    oldRestartStr    48            /* infected file on sys disk msg */
  207. #define    stillInfStr        49            /* file is still infected msg */
  208. #define    opRepErrStr1    50            /* unexpected error on open for repair 1 */
  209. #define    opRepErrStr2    51            /* unexpected error on open for repair 2 */
  210. #define    mayStillInfStr    52            /* file may still be infected */
  211. #define    memFullChkStr    53            /* mem full on check msg */
  212. #define    memFullRepStr    54            /* mem full on repair msg */
  213. #define    noPrivs1            55            /* no privs msg 1 */
  214. #define    noPrivs2            56            /* no privs msg 2 */
  215. #define    noPrivs3            57            /* no privs msg 3 */
  216. #define    noPrivs4            58            /* no privs msg 4 */
  217. #define    noPrivs5            59            /* no privs msg 5 */
  218. #define    noPrivs6            60            /* no privs msg 6 */
  219. #define    noPrivs7            61            /* no privs msg 7 */
  220. #define    noPrivs8            62            /* no privs msg 8 */
  221. #define    noPrivs9            63            /* no privs msg 9 */
  222. #define    noPrivs10        64            /* no privs msg 10 */
  223. #define    noPrivs11        65            /* no privs msg 11 */
  224. #define    noPrivs12        66            /* no privs msg 12 */
  225. #define    noPrivs13        67            /* no privs msg 13 */
  226. #define    noPrivs14        68            /* no privs msg 14 */
  227. #define    noPrivs15        69            /* no privs msg 15 */
  228. #define    gateStr1            70            /* GateKeeper msg 1 */
  229. #define    gateStr2            71            /* GateKeeper msg 2 */
  230. #define    gateStr3            72            /* GateKeeper msg 3 */
  231. #define    repFulStr        73            /* disk full on repair msg */
  232. #define    errNoteStr1        74            /* error message note 1 */
  233. #define    errNoteStr2        75            /* error message note 2 */
  234. #define    errNoteStr3        76            /* error message note 3 */
  235. #define    errRepStr1        77            /* error on repair msg 1 */
  236. #define    errRepStr2        78            /* error on repair msg 2 */
  237. #define    prbStillInfStr    79            /* probably still infected */
  238. #define    ioChkStr1        80            /* i/o error on check msg 1 */
  239. #define    ioChkStr2        81            /* i/o error on check msg 2 */
  240. #define    noCheckStr1        82            /* damaged, cannot be checked msg 1 */
  241. #define    noCheckStr2        83            /* damaged, cannot be checked msg 2 */
  242. #define    damaged1            84            /* damaged by virus msg 1 */
  243. #define    damaged2            85            /* damaged by virus msg 2 */
  244. #define    damaged3            86            /* damaged by virus msg 3 */
  245. #define    pInfAorB1        87            /* nVIR A or B partial infec msg 1 */
  246. #define    prRepTitle        88            /* printed report title for header */
  247. #define    prRepTmpl        89            /* printed report header template */
  248. #define    hlpDocTitle        90            /* printed doc title for header */
  249. #define    hlpDocTmpl        91            /* printed doc header template */
  250. #define    counter1            92            /* "Files scanned" counter */
  251. #define    counter2            93            /* "Infected files" counter */
  252. #define    counter3            94            /* "Errors" counter */
  253. #define    tconTitle        95            /* tcon title for help window */
  254. #define    getFFPrompt        96            /* get file/folder prompt */
  255. #define    getFoldPrompt    97            /* get folder prompt */
  256. #define    getFilePrompt    98            /* get file prompt */
  257. #define    scannedWord        99            /* "scanned" */
  258. #define    disinfectedWord    100    /* "disinfected" */
  259. #define    prefsFileName    101        /* "Disinfectant Prefs" file name */
  260. #define    infecNotif        102        /* infected file found notification */
  261. #define    requiresAttn    103        /* requires attention notification */
  262. #define    extractPrompt    104        /* prompt string for Extract INIT */
  263. #define    initDefName        105        /* default INIT name */
  264. #define    useFinderStr    106        /* use Finder instead of MultiFinder */
  265.  
  266. #define  abouCreditsID    129        /* about box credits STR# rsrc */
  267. #define    abouVNamesID    130        /* about box virus names STR# rsrc */
  268.                                                 
  269. #define    repHeadID            300        /* report header STR# rsrc */
  270.  
  271. #define    firstDocID            200        /* first doc STR# rsrc */
  272. #define    tconID                128        /* TCON resource id */
  273. #define    tagID                    128        /* TAG resource id */
  274. #define    cellID                128        /* CELL resource id */
  275. #define    lDefID                128        /* LDEF for report module */
  276.  
  277. #define    iconID                128        /* icon */
  278. #define    initIconID            200        /* INIT icon */
  279.  
  280. #define    floppyIconID        128        /* small floppy icon */
  281. #define    hardDriveIconID    129        /* small hard drive icon */
  282. #define    folderIconID        130        /* small folder icon */
  283. #define    fileIconID            131        /* small file icon */
  284. #define    smallDfectIconID    132        /* small Disinfectant icon */
  285.  
  286. #define    firstBallID            128        /* first beachball cursor */
  287. #define    numBalls                4            /* number of beachball cursors */
  288. #define    floppyCursID        200        /* floppy disk cursor */
  289. #define    helpCursID            201        /* help question mark cursor */
  290.  
  291. #define    mePictID                128        /* about box picture of me */
  292. #define    footPictID            129        /* about box picture of foot */
  293.  
  294. #define    vDefType                'VDEF'    /* rsrc type of virus definition
  295.                                                     resources */
  296.  
  297. #endif